package com.woniu.service.impl;

import com.woniu.dao.AdminInformationMapper;
import com.woniu.dao.AdminMapper;
import com.woniu.pojo.AdminInformation;
import com.woniu.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 张昊天
 * @date 2020/3/21 15:44
 */
@Service
public class AdminServicImpl implements AdminService {

    @Autowired
    private AdminInformationMapper adminInformationMapper;
    @Override
    public List<AdminInformation> findAdminByPage(Integer currentPage, Integer pageSize) {
        return adminInformationMapper.selectByPage(currentPage,pageSize);
    }
}
